function makedowntohtml(content)
{
	var text = content
		.replace(/\n+\s+/g, "")
		.replace(/&nbsp;/g, ' ')
		.replace(/&gt;/g, '>')
		.replace(/&lt;/g, '<')
		.replace(/<p>#/g, '#')
		.replace(/<p>/g, ' ')
		.replace(/&nbsp;/g, ' ')
		.replace(/<\/p>/g, ' ')
		.replace(/<br \/>/g, '')
		.replace(/<br\/>/g, ' \n')
		.replace(/<br>/g, ' \n');

	var converter = new showdown.Converter();

	return converter.makeHtml(text);

}